from fastapi import APIRouter

# 创建路由对象
app1 = APIRouter()


@app1.get('/get')
async def get_test():
    return {'methods':'get方法演示'}

@app1.post('/post')
async def post_test():
    return {'methods':'post方法演示'}


@app1.put('/put')
async def put_test():
    return {'methods':'put方法演示'}


@app1.delete('/delete')
async def delete_test():
    return {'methods':'delete方法演示'}